﻿using System;

namespace PlugNT.Pack.Editer.Ubb
{

    public class PostpramsInfo
    {
        //private int tid;
        private int pid;
        private string sdetail;
        private int showimages;
        private int smileyoff;
        private int bbcodeoff;
        private int hide;
        private int usercredits;
        private int allowhtml;
        private CustomEditorButtonInfo[] customeditorbuttoninfo;
        private int parseurloff;
        private int signature;



        ///// <summary>
        ///// 主题id
        ///// </summary>
        //public int Tid
        //{
        //    get { return tid; }
        //    set { tid = value; }
        //}

        /// <summary>
        /// 帖子id
        /// </summary>
        public int Pid
        {
            get { return pid; }
            set { pid = value; }
        }

        /// <summary>
        /// 是否对帖子中的图片标签进行解析.
        /// </summary>
        public int Showimages
        {
            get
            {
                return this.showimages;
            }
            set
            {
                this.showimages = value;
            }
        }

        /// <summary>
        /// 帖子内容
        /// </summary>
        public string Sdetail
        {
            get { return sdetail == null ? "" : sdetail; }
            set { sdetail = value; }
        }

        /// <summary>
        /// 禁止笑脸显示.
        /// </summary>
        public int Smileyoff
        {
            get
            {
                return this.smileyoff;
            }
            set
            {
                this.smileyoff = value;
            }
        }

        /// <summary>
        /// 禁止ubb转换
        /// </summary>
        public int Bbcodeoff
        {
            get { return bbcodeoff; }
            set { bbcodeoff = value; }
        }

        /// <summary>
        /// 判断是否为回复可见帖, hide=0为非回复可见(正常), hide>0为回复可见, hide=-1为回复可见但当前用户已回复, hide = -2表示当前用户为该帖作者
        /// </summary>
        public int Hide
        {
            get { return hide; }
            set { hide = value; }
        }

        /// <summary>
        /// 用户积分
        /// </summary>
        public int Usercredits
        {
            get { return usercredits; }
            set { usercredits = value; }
        }

        /// <summary>
        /// 是否允许解析html标签.
        /// </summary>
        public int Allowhtml
        {
            get { return allowhtml; }
            set { allowhtml = value; }
        }

        /// <summary>
        /// 自定义按钮图库
        /// </summary>
        public CustomEditorButtonInfo[] Customeditorbuttoninfo
        {
            get { return customeditorbuttoninfo; }
            set { customeditorbuttoninfo = value; }
        }

        /// <summary>
        /// 禁止网址自动转换
        /// </summary>
        public int Parseurloff
        {
            get { return parseurloff; }
            set { parseurloff = value; }
        }

        /// <summary>
        /// 是否为签名
        /// </summary>
        public int Signature
        {
            get { return signature; }
            set { signature = value; }
        }
    }
}

